<?php
use common\components\widgets\Datetimepicker;
Datetimepicker::widget(['flag'=>'timepicker'])
?>
<?= $form ?>
<div class="yx-clear">
    <label class="zx-label">上课时间</label>
    <div class="zx-field-floatl" style="padding:6px 0;">
        <?=$weekstr?>
    </div>
</div>
<input type="hidden" name="room_type" id="room_type" value="<?= $room_type ?>"/>
</div>

<?php
$js = <<<JS
    $(document).ready(function () {
        var room_type = $('#room_type').val();
        if(room_type == 0){
            $('#classmanage-classroom_id').parent().parent().parent().hide();
        }
    });
JS;
$this->registerJS($js);
?>
